package com.atguigu.gulimall.product.feign.fallback;

import com.atguigu.common.exception.BizErrorCode;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.SeckillFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class SeckillFeignServiceImpl implements SeckillFeignService {
    @Override
    public R getSkuSeckillInfo(Long skuId) {
        log.info("降级方法执行");
        return R.error(BizErrorCode.SMS_IN_HIGH_FREQUENCY_ERROR);
    }
}
